//
// Created by LENOVO on 2024/8/9.
//

#ifndef CPP_HOME_FUNCTION_H
#define CPP_HOME_FUNCTION_H
#include <stdio.h>
#include <stdlib.h>
typedef char ElemType;
typedef struct Bitree
{
    ElemType data;
    struct Bitree *lchild;
    struct Bitree *rchild;
}Bitree,*Tree;
#endif //CPP_HOME_FUNCTION_H
typedef struct tag
{
    Tree p;
    struct tag *pnext;
}tag_t,*ptag;
typedef Tree Element;
typedef struct LinkNode
{
    Element data;
    struct LinkNode *next;
}LinkNode;
typedef struct
{
    LinkNode *front,*rear;
}LinkQueue;
void InitQueue(LinkQueue &Q);
void InQueue(LinkQueue &Q,Element m);
bool DeQueue(LinkQueue &Q,Element &m);
bool IsEmpty(LinkQueue Q);